package pattern.singleton;

import pattern.singleton.懒汉式.doubleCheck;

public class TestDanli {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                doubleCheck instance = doubleCheck.getInstance();
                System.out.println(instance.hashCode());
            }
        }).start();

        new Thread(new Runnable() {
            @Override
            public void run() {
                doubleCheck instance = doubleCheck.getInstance();
                System.out.println(instance.hashCode());
                
            }
        }).start();
    }
}
